/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 * 
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License"); you may not use this file except in
 * compliance with the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 * 
 * Software distributed under the License is distributed on an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific language governing rights and limitations
 * under the License.
 * 
 * The Original Code is Komodo code.
 * 
 * The Initial Developer of the Original Code is ActiveState Software Inc.
 * Portions created by ActiveState Software Inc are Copyright (C) 2000-2011
 * ActiveState Software Inc. All Rights Reserved.
 * 
 * Contributor(s):
 *   ActiveState Software Inc
 * 
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 * 
 * ***** END LICENSE BLOCK ***** */

 
.toolbox-top {
    border: none;
    margin: 0px;
    padding: 0px;
}

/* fixup the hight of toolbar menu buttons */
hbox > toolbar > toolbarbutton[type="menu-button"] {
  padding-top: 0px;
  padding-bottom: 0px;
}

/* TODO: I believe this production is cruft. */
toolbar {
    border-right: 1px outset ThreeDHighlight;
/* #if PLATFORM != "darwin" */
    border-left: 1px outset ThreeDHighlight;
/* #endif */
    min-width: 0; /* deal with empty toolbars */
}
  
/*
 * We use our custom attribute for controlling whether a toolbar/button is
 * visible. This is so we can persist it's hidden-ness (as XUL cannot persist
 * "collapsed|hidden" attributes in a useful way).
*/
toolboxrow[kohidden="true"],
toolbar[kohidden="true"],
toolbaritem[kohidden="true"],
toolbarbutton[kohidden="true"],
toolbarseparator[kohidden="true"]
{
    display: none;
}

#main-toolboxrow toolbarbutton {
    -moz-box-orient: vertical;
}

toolbarbutton > .toolbarbutton-text:empty:not([value]) {
    display: none;
}

.toolbarbutton-text[buttonstyle="pictures"],
.toolbarbutton-icon[buttonstyle="text"] {
    display: none;
}

/* Bug 45096: These are evil. It is the reason why, for example, rxx.xul puts
 * bogus spaces around toolbarbutton labels to get some spacing. This should be
 * removed once the impact on other bits is understood. */
.toolbarbutton-text {
    margin: 0px;
    padding: 0px;
}
.toolbarbutton-icon {
    -moz-margin-end: 0px;
}

.toolbar-box {
    padding: 2px 2px;
}

/* remove grippies on menubar and toolbars */
#kombo-menubar > toolbargrippy,
#editorToolbar > toolbargrippy,
#debuggerToolbar > toolbargrippy,
#findToolbar > toolbargrippy,
#findToolbar > toolbargrippy,
#fileOpenToolbar > toolbargrippy {
	visibility: collapse;
}

menuitem.history-nav-item {
  max-width: 60em;
}


/* Common styles for the history toolbar -- also see platform-specific parts */
menuitem.history-nav-current {
  font-weight: bold;
  /*
  list-style-image: url("chrome://komodo/skin/images/menu-check.png");
  -moz-image-region: auto;
  */
}

#historyRecentLocations > image,
#historyRecentLocations > label {
  display : none;
}

/* rect(top,right,bottom,left) */
/*.history-back-icon[disabled="true"] {
  -moz-image-region: rect(32px 16px 48px 0px) !important;
}*/

/*.history-forward-icon[disabled="true"] {
  -moz-image-region: rect(32px 32px 48px 16px) !important;
}*/

/* Button Grouping */

#main-toolboxrow > toolbar:first-child
{
	margin-left: 5px;
}

